package com.topone.service.impl;

import com.topone.dataObject.DynamicInfo;
import com.topone.repository.DynamicInfoRepository;
import com.topone.service.DynamicInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2018/1/21,0021.
 */
@Service
public class DynamicInfoServiceImpl implements DynamicInfoService {

    @Autowired
    private DynamicInfoRepository repository;


    @Override
    public List<DynamicInfo> dynamicInfoList(Integer status) {
        return repository.findByStatus(status);
    }
}
